package org.opens.magicByte.entity;

import com.github.misterchangray.core.annotation.MagicClass;
import com.github.misterchangray.core.annotation.MagicConverter;
import com.github.misterchangray.core.annotation.MagicField;
import com.github.misterchangray.core.enums.TimestampFormatter;
import lombok.Data;
import org.opens.magicByte.convert.DateConvert;

import java.util.Date;

/**
 * 功能描述
 *
 * @author: zhangyuming
 * @date: 2023/9/18 15:33
 */
@Data
@MagicClass()
public class DateFileObj {

    @MagicField(order = 0)
    public byte field1;

    @MagicField(order = 1, size = 6)
    @MagicConverter(converter = DateConvert.class)
    public Date dateField;

    @MagicField(order = 2)
    public byte field2;

}
